package com.aos.util;

import org.apache.commons.codec.digest.DigestUtils;

public class SystemUtil {
    /**
     * 加密密码字符串
     *
     * @return: String
     * @throws
     */
    public static String getPasswordEncoder(String password, String salt) {
        String newpassword = password + "{" + salt + "}";
        return DigestUtils.md5Hex(newpassword);
    }
}
